package com.wish.g04.gen;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import com.wish.g04.common.security.annotation.EnableCustomConfig;
import com.wish.g04.common.security.annotation.EnableRyFeignClients;
import com.wish.g04.common.swagger.annotation.EnableCustomSwagger2;

import javax.annotation.PostConstruct;

/**
 * 代码生成
 * 
 * @author xuekai
 */
@EnableCustomConfig
@EnableCustomSwagger2   
@EnableRyFeignClients
@SpringCloudApplication
public class WishGenApplication
{
    public static void main(String[] args)
    {
        SpringApplication.run(WishGenApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  代码生成模块启动成功   ლ(´ڡ`ლ)ﾞ  \n" +
                "___       ______       ______  \n" +
                "__ |     / /__(_)_________  /_ \n" +
                "__ | /| / /__  /__  ___/_  __ \\\n" +
                "__ |/ |/ / _  / _(__  )_  / / /\n" +
                "____/|__/  /_/  /____/ /_/ /_/ \n");
    }

    @PostConstruct
    public void init(){
        // 处理 discard long time none received connection
        System.setProperty("druid.mysql.usePingMethod", "false");
    }
}
